package com.smasher.widget.design

abstract class Handler {

    private var nextHandler: Handler? = null

    fun addNext(handler: Handler) {
        nextHandler = handler
    }

    fun next() {
        nextHandler?.doHandle()
    }

    abstract fun doHandle()

}